package com.xymtop.api.mapper;

import com.xymtop.api.entity.MyFile;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * @ClassName : MyFileMapper
 * @Description : 文件实体的mapper接口
 * @Author : 肖叶茂
 * @Date: 2022/12/1  10:48
 */

@Mapper
public interface MyFileMapper {
    /**
    *@Description:新建文件
    *@Parameter:[]
    *@Return:int
    *@Author:肖叶茂
    *@Date:2022/12/1
    **/
    int addFile(String id,String type,String contentid,String contenttype,String url,String status);

    
    int deleteFile(String id);

    /**
    *@Description:通过id获取文件的所有信息
    *@Parameter:[id]
    *@Return:com.xymtop.api.entity.MyFile
    *@Author:肖叶茂
    *@Date:2022/12/1
    **/

    MyFile getFileById(String id);

}
